/*
    BibleNotebook - A bible reader software
    Copyright (C) 2014  Williams Fernando Lopez

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
 */

package com.simplebible.dictionary.objects;


import java.util.List;
import com.simplebible.objects.CommonObject;

/**
 *
 * @author Williams Lopez
 */
public class Entry extends CommonObject{

    private String word;
    private int nextEntryData;
    private int dataDefinitionStart;
    private int dataDefinitionLength;
    private Entry parent;
    private List<Entry> data;
    private DictDefinition definition;

    public List<Entry> getData() {
        return data;
    }

    public void setData(List<Entry> data) {
        this.data = data;
    }

    public DictDefinition getDefinition() {
        return definition;
    }

    public void setDefinition(DictDefinition definition) {
        this.definition = definition;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public boolean isDefinition(){
        return definition != null;
    }

    public Entry getParent() {
        return parent;
    }

    public void setParent(Entry parent) {
        this.parent = parent;
    }

    public int getDataDefinitionLength() {
        return dataDefinitionLength;
    }

    public void setDataDefinitionLength(int dataDefinitionLength) {
        this.dataDefinitionLength = dataDefinitionLength;
    }

    public int getDataDefinitionStart() {
        return dataDefinitionStart;
    }

    public void setDataDefinitionStart(int dataDefinitionStart) {
        this.dataDefinitionStart = dataDefinitionStart;
    }

    public int getNextEntryData() {
        return nextEntryData;
    }

    public void setNextEntryData(int nextEntryData) {
        this.nextEntryData = nextEntryData;
    }

    

}
